package cn.com;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
//import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
//import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 基础模块的入口类
 * @author laiyubo
 */
@SpringBootApplication
@MapperScan(basePackages = "cn.com.nou.base.dao")
public class NouBaseApplication 
{
    public static void main( String[] args )
    {
    	ConfigurableApplicationContext context = SpringApplication.run(NouBaseApplication.class, args);
        System.out.println( "该服务的名称是:{}"+context.getEnvironment().getProperty("spring.application.name"));
        System.out.println("该服务的启动端口是:{}"+context.getEnvironment().getProperty("server.port"));
    }
}